/* TinyMCE 编辑器内容样式 */

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.mce-content-body[data-mce-placeholder]::before {
  position: absolute !important;
  top: 28px !important;
  left: 80px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  color: #9ca3af !important;
  font-style: normal !important;
}

.mce-content-body p {
  margin: 0 !important;
  padding: 5px 0 !important;
}

/* 空段落提示（仅标记 data-ai-empty 的段落） */
.mce-content-body p[data-ai-empty="true"] {
  position: relative;
}

.mce-content-body p[data-ai-empty="true"]::before {
  content: '点击图标或者回车唤起AI功能';
  color: #9ca3af;
  font-style: italic;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(0, 5px);
  pointer-events: none;
}

/* 当前空行且显示 AI 图标时，在光标下方显示辅助文案 */
.mce-content-body p[data-ai-hint="true"] {
  position: relative;
}

.mce-content-body p[data-ai-hint="true"]::after {
  content: '点击图标或者按空格唤起AI助手';
  color: #9ca3af;
  /* font-style: italic; */
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(0, 5px);
  pointer-events: none;
}
.tox.tox-tinymce-inline .tox-editor-header {
  border: none;
}
